1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6 <meta name="generator" content=
7 "HTML Tidy for Linux/x86 (vers 12 April 2005), see www.w3.org" />
9 <title>counter_lu_policy Interface</title>
10 <meta http-equiv="Content-Type" content=
11 "text/html; charset=us-ascii" />
16 <h1><tt>counter_lu_policy</tt> Interface</h1>
18 <p>A list-update policy that moves elements to the front of the
19 list based on the counter algorithm.</p>
21 <p>Defined in: <a href=
22 "http://gcc.gnu.org/viewcvs/*checkout*/trunk/libstdc%2B%2B-v3/include/ext/pb_ds/list_update_policy.hpp"><tt>list_update_policy.hpp</tt></a></p>
24 <h2><a name="link1" id="link1">Template Parameters</a></h2>
26 <table class="c1" width="100%" border="1" summary=
27 "Template Parameters">
29 <td width="20%" align="left"><b>Parameter</b></td>
31 <td width="50%" align="left"><b>Description</b></td>
33 <td width="30%" align="left"><b>Default Value</b></td>
39 <a name="Max_Count39887466" id=
40 "Max_Count39887466">size_t Max_Count </a>
47 <p>When some element is accessed this number of times, it
48 will be moved to the front of the list.</p>
57 <a name="Allocator35940069" id=
58 "Allocator35940069"><b>class</b> Allocator </a>
63 <p>Allocator type.</p>
65 <p>This is used only for definitions, e.g., the size
71 std::allocator<<b>char</b>>
77 <h2><a name="link2" id="link2">Public Types and
80 <h3><a name="link3" id="link3">Policy Definitions</a></h3>
82 <table class="c1" width="100%" border="1" summary="Types">
84 <td width="30%" align="left"><b>Type</b></td>
86 <td width="55%" align="left"><b>Definition</b></td>
88 <td width="15%" align="left"><b>Description</b></td>
94 <a name="allocator48440069" id="allocator48440069">allocator</a>
100 <a href="#Allocator35940069"><tt>Allocator</tt></a>
105 <p><a href="#Allocator35940069"><tt>Allocator</tt></a>
113 <a name="max_count52407466" id="max_count52407466">max_count</a>
119 <a href="#Max_Count39887466"><tt>Max_Count</tt></a>
125 <p>Maximum count.</p>
130 <h3><a name="link4" id="link4">General Definitions</a></h3>
132 <table class="c1" width="100%" border="1" summary="Types">
134 <td width="30%" align="left"><b>Type</b></td>
136 <td width="55%" align="left"><b>Definition</b></td>
138 <td width="15%" align="left"><b>Description</b></td>
144 <a name="size_type55424436" id="size_type55424436">size_type</a>
150 <b>typename</b> <a href=
151 "#allocator48440069"><tt>allocator</tt></a>::size_type
161 <h3><a name="link5" id="link5">Metadata-Type
164 <table class="c1" width="100%" border="1" summary="Types">
166 <td width="30%" align="left"><b>Type</b></td>
168 <td width="55%" align="left"><b>Definition</b></td>
170 <td width="15%" align="left"><b>Description</b></td>
176 <a name="metadata_type2849297114" id=
177 "metadata_type2849297114">metadata_type</a>
183 Some class containing a counter.
188 <p>Metadata on which this functor operates.</p>
195 <a name="metadata_reference583863863" id=
196 "metadata_reference583863863">metadata_reference</a>
202 <b>typename</b> <a href=
203 "#Allocator35940069"><tt>Allocator</tt></a>::<b>template</b> rebind<
205 "#metadata_type2849297114"><tt>metadata_type</tt></a>>::other::reference
210 <p>Reference to metadata on which this functor
216 <h2><a name="link6" id="link6">Public Methods</a></h2>
218 <h3><a name="link7" id="link7">Metadata Methods</a></h3>
220 <table class="c1" width="100%" border="1" summary="Methods">
222 <td width="45%" align="left"><b>Method</b></td>
224 <td width="55%" align="left"><b>Description</b></td>
230 <a href="#metadata_type2849297114"><tt>metadata_type</tt></a>
237 <p>Creates a metadata object.</p>
247 "#metadata_reference583863863"><tt>metadata_reference</tt></a> r_metadata) <b>const</b>
252 <p>Decides whether a metadata object should be moved to
253 the front of the list.</p>